
     <div class="loginBlock" id="login" style="display: block;">
          <h1>Login Portal</h1>
          <div class="dr"><span></span></div>
          <div class="loginForm">
               <?php
                  if(isset($_GET['redirect_url'])){
                     $url = Functions::encode_decode_url($_GET['redirect_url'],"encode");
                     $action = "/login?redirect_url=" . $url;
                  }else{
                     $action = "/login";
                  }
               ?>
               <form class="form-horizontal" action="<?php echo $action; ?>" method="POST" id="validation login-form">
                    <center>
                         <img data-placement="bottom" data-original-title="Samuel 9999055639" src="http://formalistics.cdn.com.ph/avatar/large.png" width="50" height="50" class="img-polaroid userAvatar">
                    </center>
                    <div class="control-group">
                         <span class="add-on">Type your email:</span>
                         <input type="text" name="username" id="inputEmail" placeholder="Email" class="validate[required]"/>              
                    </div>
                    <div class="control-group">
                         <span class="add-on">Type your password:</span>
                         <input type="password" name="password" id="inputPassword" placeholder="Password" class="validate[required]"/>
                    </div>
                    <div class="row-fluid">
                         <div class="span8">
                              <div class="control-group" style="margin-top: 5px;">
                                   <label class="checkbox"><input type="checkbox"> Remember me</label>                                                
                              </div>                    
                         </div>
                         <div class="span4">
                              <button type="submit" name="submit" class="btn btn-block">Sign in</button>       
                         </div>
                    </div>
               </form>  
               <div class="dr"><span></span></div>
               <div class="controls">
                    <div class="row-fluid">
                         <div class="span6 pull-left">
                              <button class="btn btn-link btn-block" onClick="loginBlock('#forgot');">Forgot your password?</button>
                         </div>
                         <div class="span4 pull-right">
                              <button class="btn btn-link btn-block" onClick="loginBlock('#reg');">Registration</button>
                         </div>
                    </div>
               </div>
          </div>
     </div>    
    
     <div class="loginBlock" id="forgot">
          <h1>Forgot your password?</h1>
          <div class="dr"><span></span></div>
          <div class="loginForm">
               <form class="form-horizontal" action="http://aqvatarius.com/themes/aquarius_v17/index.html" method="POST">
                    <p>This form help you return your password. Please, enter your password, and send request</p>
                    <div class="control-group">
                         <span class="add-on">Enter your email:</span>
                         <input type="text" placeholder="Your email"/>            
                    </div>                
                    <div class="row-fluid">
                         <div class="span8"></div>
                         <div class="span4">
                             <button type="submit" class="btn btn-block">Send request</button>       
                         </div>
                    </div>
               </form>  
               <div class="dr"><span></span></div>
               <div class="controls">
                    <div class="row-fluid">                    
                         <div class="span12">
                             <button class="btn btn-link" onClick="loginBlock('#login');">&laquo; Back</button>
                         </div>
                    </div>
               </div>
          </div>
     </div>
    
     <div class="loginBlock" id="reg">
          <h1>Registration</h1>
          <div class="dr"><span></span></div>
          <div class="loginForm">
               <form class="form-horizontal" action="" method="POST">
                    <div class="control-group">
                         <span class="add-on">Name:</span>
                         <input type="text" placeholder="Name"/>
                    </div>
                    <div class="dr"><span></span></div>
                    <div class="control-group">
                         <span class="add-on">Password:</span>
                         <input type="password" placeholder="Password"/>
                    </div>
                    <div class="control-group">
                         <span class="add-on">Re-Password:</span>
                         <input type="password" placeholder="Re-Password"/>
                    </div>                
                    <div class="dr"><span></span></div>
                    <div class="control-group">
                         <span class="add-on">E-mail:</span>
                         <input type="text" placeholder="E-mail"/>
                    </div>                
                    <div class="row-fluid">
                         <div class="span8">
                              <div class="control-group" style="margin-top: 5px;">
                                   <label class="checkbox"><input type="checkbox"> I agree with terms..</label>                                                
                              </div>                                                  
                         </div>
                         <div class="span4">
                              <button type="submit" class="btn btn-block">Registration</button>       
                         </div>
                    </div>
               </form>  
               <div class="dr"><span></span></div>
               <div class="controls">
                    <div class="row-fluid">
                         <div class="span12">
                             <button class="btn btn-link" onClick="loginBlock('#login');">&laquo; Back</button>
                         </div>
                    </div>
               </div>
          </div>
     </div>  